<template>
  <div>
    <h1 class="title">{{ title }}</h1>

    <div class="content">
      <slot></slot>
    </div>
  </div>
</template>

<script setup>
defineProps({
  title: {
    type: String,
    default: "标题",
  },
});
</script>

<style lang="less" scoped>
div {

  .title {
    padding-left: 20px;
    height: 60px;
    // width: 100%;
    font-size: 14px;
    font-weight: bold;
    background-color: rgb(242, 242, 242);
    line-height: 60px;
  }
  .content{
    padding-left: 60px;
  }
}
</style>
